<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <css file="__DATA__/css/base.css"/>
 
    <link type="text/css" href="__ROOT__/data/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="__ROOT__/data/ui/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="__ROOT__/data/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
   <js file='__PUBLIC__/js/category.js'>
    <script type="text/javascript">
        $(function(){
            $("#tabs").tabs();
        })
        
       
    </script>
<style>
#d1{width:180px;height:150px;border:1px solid red;float:left;margin-left:10px;margin-top:20px;}

#d1 img{width:180;height:130px;}
#d11{width:40px;height:20px;margin:0 auto;border:1px solid red;font-size:20;color:red;}
.a_close{width:100%;height:20px;background:#ccc;}
</style>
</head>
<body marginleft="10">
    <div class="path">
        <strong>您现在的位置：
        <empty value="{$hd.get.catid}">添加顶级栏目<noempty>添加子栏目</empty>
        </strong>
        <empty value="{$hd.get.catid}">添加顶级栏目<noempty>添加子栏目</empty>
    </div>
    <form action="__CONTROL__/add" method="post">
        <input type="hidden" name="pid" value="<empty value='$hd.get.catid'>0<noempty>{$hd.get.catid}</empty>"/>
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">基本内容</a></li>
                <li><a href="#tabs-2">生成静态规则</a></li>
                <li><a href="#tabs-3">模板设置</a></li>
            </ul>
            <div id="tabs-1">
                <table class="table2">
                    <tr>
                        <th>栏目名称：</th>
                        <td><input type="text" name="cname" style="width:360px;"/></td>
                    </tr>
                    <tr>
                        <th>目录名称：</th>
                        <td><input type="text" name="catdir" style="width:200px;"/>
                            <span class="desc">目录名称必须为英文</span>
                    </tr>
                    <tr>
                        <th>跳转url：</th>
                        <td><input type="text" name="gourl" style="width:260px;"/></td>
                    </tr>
                    <tr>
                        <th>是否显示：</th>
                        <td><input type="radio" name="isshow" value="1" checked="checked"/>是&nbsp;&nbsp;
                            <input type="radio" name="isshow" value="0"/>否</td>
                    </tr>
                    <tr>
                        <th>关键字：</th>
                        <td><input type="text" name="keywords" style="width:300px;"/></td>
                    </tr>
                    <tr>
                        <th>描述：</th>
                        <td><textarea style="height:60px;width:90%" name="descroption"></textarea></td>
                    </tr>
                </table>
            </div>

            <div id="tabs-2">
                <table class="table2">
                    <tr>
                        <th>栏目生成静态：</th>
                        <td><input type="radio" name="iscathtml" value="1" checked="checked"/>是&nbsp;&nbsp;
                            <input type="radio" name="iscathtml" value="0"/>否</td>
                    </tr>
                    <tr>
                        <th>内容生成静态：</th>
                        <td><input type="radio" name="isconhtml" value="1" checked="checked"/>是&nbsp;&nbsp;
                            <input type="radio" name="isconhtml" value="0"/>否</td>
                    </tr>
                    <tr>
                        <th>栏目页静态规则：</th>
                        <td><input type="text" name="cathtml" style="width:360px;" value="{catdir}/{y}{m}{d}/{catid}_{page}.html"/>
                            <span class="desc">{catdir}栏目目录，{y}年{m}月{d}日{catid},栏目id,{page}页码</span></td>
                    </tr>
                    <tr>
                        <th>内容页静态规则：</th>
                        <td><input type="text" name="conhtml" style="width:360px;" value="{catdir}/{y}{m}{d}/{nid}.html"/>
                            <span class="desc">{catdir}栏目目录，{y}年{m}月{d}日{catid},栏目id,{page}页码</span></td>
                        </td>
                    </tr>
                </table>
            </div>
               
            <div id="tabs-3">
                <table class="table2">
                    <tr>
                        <th>首页模板：</th>
                        <td>
                        <input type="text" name="indextpl"  id="indextpl" style="width:360px;" value="{$v.name}/news_index.html"/>
                            <a class="button2" tpltype="indextpl" id="abc">选择模板</a>
                        </td>
                    </tr>
                    <tr>
                        <th>列表页模板：</th>
                        <td><input type="text" name="listtpl" style="width:360px;" value="{$v.name}/news_list.html"/>
                    <a class="button2" tpltype="indextpl" id="abc">选择模板</a>
                    </td>
                    </tr>
                    <tr>
                        <th>内容页模板：</th>
                        <td><input type="text" name="contpl" style="width:360px;" value="{$v.name}/news_con.html"/>
                    <a class="button2" tpltype="indextpl" id="abc">选择模板</a>
                    </td>
                    </tr>
                </table>
            
            </div>
            
            <div style="padding-left:100px;">
                <input type="submit" value="添加栏目" class="submit"/>
            </div>
        </div>
   
<div id="fade" class="black_overlay">
</div>

<div id="MyDiv" class="white_content">
<div style="text-align: right; cursor: default; height: 40px;">
<div style="font-size: 16px;"class='a_colse'>关闭</div>

<list from="$moban" name="$v">
<div id='d1'>
<ul>
<li><img src='__ROOT__/template/{$v.name}/01.png'></li>
<div id='d11'><li name="{$v.name}">{$v.name}</li></div>

</ul>

</div>
</list>
</div>
    
    </form>
</body>
</html>
